﻿namespace DoNet.Common.Const
{
    /// <summary>
    /// 系统缓存常量
    /// </summary>
    public class CacheConst
    {
        /// <summary>
        /// 系统配置缓存
        /// </summary>
        public const string KeySysSetting = "sys_settings";
        /// <summary>
        /// 系统App缓存
        /// </summary>
        public const string KeyAppList = "sys_app_list";
        /// <summary>
        /// 登录用户缓存
        /// </summary>
        public const string KeyLoginUser = "sys_login_user_";
        /// <summary>
        /// 登录用户缓存
        /// </summary>
        public const string KeyLoginUserInfo = "sys_login_user_info_";

        /// <summary>
        /// 用户可使用功能缓存
        /// </summary>
        public const string KeyUserFunction = "sys_user_function_";
        /// <summary>
        /// 用户菜单缓存
        /// </summary>
        public const string KeyUserMenu = "sys_user_menu_";

        /// <summary>
        /// 用户权限缓存（按钮集合）
        /// </summary>
        public const string KeyUserButton = "sys_user_button_";

        /// <summary>
        /// 用户机构缓存
        /// </summary>
        public const string KeyUserOrg = "sys_user_org_";

        /// <summary>
        /// 角色最大数据范围缓存
        /// </summary>
        public const string KeyRoleMaxDataScope = "sys_role_maxDataScope_";

        /// <summary>
        /// 在线用户缓存
        /// </summary>
        public const string KeyUserOnline = "sys_user_online";

        /// <summary>
        /// 图形验证码缓存
        /// </summary>
        public const string KeyVerCode = "sys_validate_vode_";

        // 手机验证码缓存
        public const string KeyPhoneVerCode = "sys_phoneVerCode";

        /// <summary>
        /// 租户缓存
        /// </summary>
        public const string KeyTenants = "sys_tenants";

        /// <summary>
        /// 常量下拉框
        /// </summary>
        public const string KeyConst = "sys_const";

        /// <summary>
        /// 所有缓存关键字集合
        /// </summary>
        public const string KeyAll = "sys_keys";
    }
}
